package com.jna.unrar.bean;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

public class RARHeaderData extends Structure {
    public byte[] ArcName = new byte[256];
    public byte[] FileName = new byte[256];
    public int Flags;
    public int PackSize;
    public int UnpSize;
    public int HostOS;
    public int FileCRC;
    public int FileTime;
    public int UnpVer;
    public int Method;
    public int FileAttr;
    public char CmtBuf;
    public int CmtBufSize;
    public int CmtSize;
    public int CmtState;

    public RARHeaderData() {
        super();
    }

    @Override
    protected List<String> getFieldOrder() {
        return Arrays.asList(new String[]{
                "ArcName",
                "FileName",
                "Flags",
                "PackSize",
                "UnpSize",
                "HostOS",
                "FileCRC",
                "FileTime",
                "UnpVer",
                "Method",
                "FileAttr",
                "CmtBuf",
                "CmtBufSize",
                "CmtSize",
                "CmtState"
        });
    }
}
